package org.lsb.app_back.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.lsb.app_back.domain.DevUser;

import java.util.Optional;

/**
* @author 刘帅博
* @description 针对表【dev_user】的数据库操作Mapper
* @createDate 2025-03-16 16:36:11
* @Entity generator.domain.DevUser
*/
public interface DevUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(DevUser record);

    int insertSelective(DevUser record);

    DevUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DevUser record);

    int updateByPrimaryKey(DevUser record);
    @Select("SELECT * FROM dev_user WHERE devcode = #{devCode} AND devpassword = #{password}")
    DevUser findByDevCodeAndPassword(@Param("devCode")String devCode, @Param("password")String password);
}

